<div class="box box-info">
    <div class="box-header with-border">
        <h3 class="box-title"></h3>

        <div class="box-tools">
            <div class="btn-group pull-right" style="margin-right: 10px">
                <a href="{{ route('operators.index') }}" class="btn btn-sm btn-default"><i class="fa fa-list"></i>
                    列表</a>
            </div>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-bordered">
            <tbody>
            <tr>
                <td>登录名：</td>
                <td>{{ $operator->username }}</td>
            </tr>
            <tr>
                <td>名称：</td>
                <td>{{ $operator->name }}</td>
            </tr>
            <tr>
                <td rowspan="{{ $operator->machines->count() + 1 }}">机器:</td>
                <td>名称</td>
            </tr>
            @foreach($operator->machines as $machine)
                <tr>
                    <td><a href="{{ route('admin.machines.show', $machine->id) }}">{{ $machine->name }}</a></td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>
</div>